package cn.isjinhao.se.sql.grammar.statement;

import cn.isjinhao.se.sql.grammar.CurdStatement;
import cn.isjinhao.se.sql.grammar.CurdStatementVisitor;
import cn.isjinhao.se.sql.lexical.token.Token;

/**
 * @Author ISJINHAO
 * @Date 2021/8/15 16:16
 */
public class TimeUnit extends CurdStatement {

    private CurdStatement curdStatement;

    private Token token;

    public TimeUnit(Token token, CurdStatement curdStatement) {
        this.token = token;
        this.curdStatement = curdStatement;
    }

    @Override
    public <R> R accept(CurdStatementVisitor<R> curdStatementVisitor) {
        return curdStatementVisitor.visitTimeUnit(this);
    }

    public CurdStatement getCurdStatement() {
        return curdStatement;
    }

    public Token getToken() {
        return token;
    }
}
